package sample8;

import java.awt.Button;
import java.awt.Checkbox;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.Label;
import java.awt.List;
import java.awt.SystemColor;
import java.awt.TextArea;
import java.awt.TextField;

public class FlowLayoutSample {
	public static void main(String[] args) {
		Frame f = new Frame();
		f.setBackground(SystemColor.control);
		f.setLayout(new FlowLayout());
		f.add(new Button("Button"));
		f.add(new TextArea("Area"));
		f.add(new TextField("TextField"));
		f.add(new Label("Label"));
		f.add(new Checkbox("Checkbox"));
		List list = new List();
		list.add("List Item 1");
		list.add("List Item 2");
		list.add("List Item 3");
		f.add(list);
		f.setBounds(100, 100, 600, 300);
		f.setVisible(true);
	}
}
